﻿using MKAdminCore.DTO.Web.Common;
using MKAdminCore.DTO.Web.TableData.BasicTable;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MKAdminCore.IService.Web.TableData
{
    public interface IBasicTableService
    {
        /// <summary>
        /// 获取员工信息列表
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        PagingList<GetBasicTableListModel> List(GetBasicTableListParameter parameter);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Add(AddBasicTableParam parameter, UserInfo userInfo);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Edit(EditBasicTableParam parameter);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<HttpResponseResult> Del(DelBasicTableParam parameter);

    }
}
